<%@page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>

<script type="text/javascript">
	$(function() {
		$("#dg_table").datagrid({
			url: base.contextPath+"/sysmgr/dbmgr/doNotNeedAuth_tableAttr.do?databaseName=${databaseName}&table=${table}",
			idField: 'COLUMN_NAME', fit: true, border: false, remoteSort: false, striped:true, singleSelect: true,
			frozenColumns: [[
			    { field: 'ck', checkbox: true }
			]],
			columns: [[
			    { field: 'COLUMN_NAME', title: '字段', width: 200, sortable: true },
			    { field: 'COLUMN_TYPE', title: '类型', width: 140, sortable: true },
			    { field: 'IS_NULLABLE', title: '允许空值', width: 60, align: 'center', sortable: true },
			    { field: 'COLUMN_KEY', title: '主键', width: 60, sortable: true },
			    { field: 'EXTRA', title: '扩展', width: 110, sortable: true },
			    { field: 'COLUMN_DEFAULT', title: '默认值', width: 110, sortable: true }, 
			]]
		}) ;
	});
</script>
<div id="dg_table"></div>
